home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / mail110 / storage.c < prev    next >
C/C++ Source or Header  |  1994-02-20  |  2KB  |  63 lines

  1. //=========================================================
  2. //
  3. //    storage.c
  4. //
  5. //    Contains the storage for the in-memory mail index
  6. //    and allows up to MAXMAIL mail items in a mailbox.
  7. //
  8. //    Also contains other global storage.
  9. //
  10. //=========================================================
  11.  
  12. // $Id: storage.c,v 1.3 1994/02/20 19:13:38 gbj Exp user $
  13.  
  14. /*
  15. $Log: storage.c,v $
  16.  * Revision 1.3  1994/02/20  19:13:38  gbj
  17.  * Added alias global ver.
  18.  *
  19.  * Revision 1.2  1994/02/08  23:33:54  gbj
  20.  * First public release.
  21.  *
  22.  * Revision 1.1  1994/02/08  03:16:14  gbj
  23.  * Initial revision
  24.  *
  25. */
  26.  
  27. #define MAXMAIL 100
  28.  
  29. #include "mailer.h"
  30.  
  31. // Must make this a linked list - one day perhaps...
  32. MAILIX mailix[MAXMAIL];        // Runtime mailbox index
  33. int maxmsgno;
  34.  
  35. // YUK, YUK, YUK - loads of global variables...
  36. // These should be in a structure and a pointer to it passed
  37. // around - one day perhaps.
  38. char mailpath[128];        // Full pathname of mail directory
  39. char mqueuepath[128];    // Full pathname of mqueue directory
  40. char mbox[128];            // Full pathname of current mailbox
  41. char sequence[128];        // Full pathname of sequence file
  42. char txt[128];            // Full pathname of .txt file
  43. char wrk[128];            // Full pathname of .wrk file
  44. char tmp[128];            // Full pathname of .tmp file
  45. char host[128];            // Hostname
  46. char reply[128];        // Reply-To:
  47. char name[128];            // Full Name
  48. char from[128];            // From:
  49. char edit[128];            // Full pathname of editor
  50. char user[128];            // User mailbix id
  51. char mail[128];            // Path to dir containing mail/mqueue dirs
  52. char sig[128];            // Path to your signature file
  53. char log[128];            // Name of outgoing mail mailbox
  54. char alias[128];        // Path of your mail alias file.
  55.  
  56. FILE *mfd;                // Mailbox fd
  57. FILE *sfd;                // Sequence fd
  58. FILE *tfd;                // .txt fd
  59. FILE *wfd;                // .wrk fd
  60. FILE *xfd;                // .tmp fd
  61.  
  62. int cmsg;                // Current message
  63.